-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix negative expires_ms and avoid worker freezing while using cron #479
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ ❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## main #479 +/- ##
==========================================
- Coverage 96.27% 96.01% -0.27%
==========================================
Files 11 11
Lines 1074 1078 +4
Branches 209 190 -19
==========================================
+ Hits 1034 1035 +1
- Misses 19 21 +2
- Partials 21 22 +1
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@samuelcolvin ? :) |
Thanks @Matvey-Kuk! I'll work on getting a release ready |
Thank you @chrisguidry ! Moving Arq back to prod <3 |
We're encouraging issue with negative expires_ms while excessively using frequent cron jobs. It's happening rarely, but is causing worker freezes which is pretty annoying in production.
The issue is also mentioned here: #447
To reproduce:
_defer_until
to be in the past.expires_ms
to be negative here: https://github.com/python-arq/arq/blob/main/arq/connections.py#L170Thank you for the library! ❤️